//
//  AVImageViewController.m
//  CaptureDemo
//
//  Created by 苏沫离 on 2018/9/11.
//  Copyright © 2018年 苏沫离. All rights reserved.
//

#import "AVImageViewController.h"

@interface AVImageViewController ()
@property (nonatomic ,strong) UIImageView *imgaeView;
@end

@implementation AVImageViewController

- (instancetype)initWithImage:(UIImage *)image
{
    self = [super init];
    
    if (self)
    {
        self.imgaeView.image = image;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.view addSubview:self.imgaeView];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (UIImageView *)imgaeView
{
    if (_imgaeView == nil)
    {
        _imgaeView = [[UIImageView alloc] initWithFrame:UIScreen.mainScreen.bounds];
    }
    return _imgaeView;
}

@end
